package struct.intermediate.stack;

/**
 * @author MAX
 * @version 1.0
 * @description TODO
 * @date 2022/1/13 10:40
 */
public class LinkStackTest {

    public static void main(String[] args) {
        LinkedStack<Integer> stack = new LinkedStack<>();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.push(4);
        stack.push(5);

        System.out.println("stack top: " + stack.peek());
        System.out.println("linked stack: " + stack);
    }
}
